package com.java80.springmall.cloud.order.provider.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.codingapi.tx.annotation.TxTransaction;
import com.java80.springmall.cloud.order.provider.entity.Orders;
import com.java80.springmall.cloud.order.provider.repository.OrderRepository;
import com.java80.springmall.cloud.order.provider.service.OrderService;
@Service
public class OrderServiceImpl implements OrderService {
	@Autowired
	private OrderRepository orderRepository;
	@Override
	@Transactional
    @TxTransaction
	public Orders save(Orders order) {
		return orderRepository.save(order);
	}

}
